
define(function(require, exports, module) {

    "use strict";
    var result = {};

    // 基本路径
    result.baseUrl = "http://192.168.1.238:81/debtor/";


    result.ajaxtimeout = 25000;

    // 校验
    result.patternObj = {
        "require": {
            regexp: /.+/,
            tip: "不能为空",
        },
        "int":{
            regexp:/^[0-9]*$/,
            tip:"须为整数"
        },
        "float":{
             regexp: /^\d+(\.\d+)?$/, //  /^\d+\.?\d+$/,
             tip:"须为数字"
        },
        "complex":{
             regexp: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/,
             tip:"请填写8-16位数字与字母的组合密码"
        },
        "phone":{
            regexp: /^1[0-9]{10}$/,
            tip:"请填写正确的手机号"
        },
        "email": {
            regexp: /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/,
            tip: "请填写正确的邮箱"
        }
    }

    module.exports = result;
});
